#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
  // 数据类型 数组名[ 数组长度 ];
  int arr[5];

  arr[0] = 10;
  arr[1] = 20;
  arr[2] = 30;
  arr[3] = 40;
  arr[4] = 50;

  cout << arr << endl;
  // cout << arr[0] << endl;
  // cout << arr[1] << endl;
  // cout << arr[2] << endl;
  // cout << arr[3] << endl;

  // 数据类型 数组名[ 数组长度 ] = {值1, 值2 ...};
  int arr2[5] = {10, 20, 30};
  cout << arr2 << endl;

  for (int i = 0; i < 5; i++)
  {
    // cout << arr2[i] << endl;
  }
  // 数据类型 数组名[ ] = {值1, 值2 ...}
  int arr3[] = {90, 80, 70, 60, 50, 40, 30, 20, 10};
  cout << arr3 << endl;

  return 0;
}